<%-- 
    Document   : cadastraCarro
    Created on : 09/07/2012, 18:01:06
    Author     : davi
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Cadastro de Carro</h1>
        <form action="control" method="post">

                Placa: <input type="text" name="placa" />
                Modelo: <input type="text" name="modelo" />
                Marca: <input type="text" name="marca" />
                Cor: <input type="text" name="cor" />
                Observação:
                <jsp:useBean id="dao" class="model.cliente.ClienteDAO"/>
                
                
                
                Dono:  <select name="clienteID">
                    <c:forEach var="dono" items="${dao.listar()}">
                    <option value="${dono.idCliente}">${dono.nome}</option>        
                    
                </c:forEach>            

            </select>
                
                           

                
                <input type="hidden" name="logica" value="carro.AdicionaCarro"/>
                <input type="submit" value="Adicionar" />
                <input type="reset" value="Limpar"/>
            </form>
        
    </body>
</html>
